import {API_PRE, getApiJson} from './base'

const menuApi = {
  getMenuList (args) {
    let url = API_PRE + 'Ecp.Menu.getUserMenuList'
    return getApiJson(url, args)
  },
  // get sub menus
  getSubMenu (args) {
    let url = API_PRE + 'Ecp.Menu.getUserMenuDetail'
    return getApiJson(url, args)
  },
  // message
  getUnreadMessage () {
    let url = API_PRE + 'Ecp.SystemMessage.unReadMessage'
    return getApiJson(url, null)
  }
}

export {menuApi}
